// with polyfills
import 'core-js/stable'
import 'regenerator-runtime/runtime'

import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store/'
import { VueAxios } from './utils/request'
import i18n from './utils/lang/index';
// mock
// WARNING: `mockjs` NOT SUPPORT `IE` PLEASE DO NOT USE IN `production` ENV.
import './mock'

import bootstrap from './core/bootstrap'
import './core/lazy_use'
import './permission' // permission control
import './utils/filter' // global filter
import './components/global.less'
import qs from 'qs'
import VueSocketIO from 'vue-socket.io'

Vue.prototype.$qs = qs
Vue.prototype.$hostServer = 'http://localhost:9898'
// Vue.prototype.$hostServer = 'http://j.wan77.net'
// Vue.prototype.$hostServer = 'http://a.fxgz.co'

Vue.config.productionTip = false

// mount axios Vue.$http and this.$http
Vue.use(VueAxios)

Vue.use(new VueSocketIO({
  debug: false,
  connection: '159.138.29.9:7373/'
}))
new Vue({
  router,
  store,
  i18n,
  created: bootstrap,
  render: h => h(App)
}).$mount('#app')
